﻿package velbus.modules 
{
	import flash.events.Event;
	import velbus.Packet;
	
	/**
	* ...
	* @author Gert Stalpaert (gert@stogo.net)
	*/
	public class VelbusModuleEvent extends Event 
	{

		static public const NAME_LIST_CHANGE:String = "NAME_LIST_CHANGE";
		
		public var packet:Packet;
		
		public function VelbusModuleEvent(type:String, packet_:Packet = null, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
			packet = packet_;
		} 
		
		public override function clone():Event 
		{ 
			return new VelbusModuleEvent(type, packet, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("VelbusModuleEvent", "packet:" + packet, "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
	}
	
}